<template>
  <div>
    <h4>上肢肌力</h4>
    <el-row type="flex" justify="space-between">
      <el-col>
        <span>左上肢</span>
      </el-col>
      <el-col>
        <el-radio-group v-model="pgForm.shangzjil_left_radio">
          <el-radio label="评估"></el-radio>
          <el-radio label="不评估"></el-radio>
        </el-radio-group>
      </el-col>
      <el-col :span="7">
        <span>肩外展 </span>
        <el-select v-model="pgForm.shangzjil_left_jianwaizhan">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
      <el-col :span="7">
        <span>肘屈曲 </span>
        <el-select v-model="pgForm.shangzjil_left_zhouququ">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
      <el-col :span="7">
        <span>腕背曲 </span>
        <el-select v-model="pgForm.shangzjil_left_wanbeiqu">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
      <el-col>
        <span>右上肢</span>
      </el-col>
      <el-col>
        <el-radio-group v-model="pgForm.shangzjil_right_radio">
          <el-radio label="评估"></el-radio>
          <el-radio label="不评估"></el-radio>
        </el-radio-group>
      </el-col>
      <el-col :span="7">
        <span>肩外展 </span>
        <el-select v-model="pgForm.shangzjil_right_jianwaizhan">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
      <el-col :span="7">
        <span>肘屈曲 </span>
        <el-select v-model="pgForm.shangzjil_right_zhouququ">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
      <el-col :span="7">
        <span>腕背曲 </span>
        <el-select v-model="pgForm.shangzjil_right_wanbeiqu">
          <el-option v-for="item in shangzjil" :key=item.val :label=item.val :value=item.val></el-option>
        </el-select>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "xfzzkfpgb_shangzjil",
  title: "上肢肌力",
  created() {
    if (this.istrans) {
      this.pgForm = this.fromdata
    }
  },
  props: {
    fromdata: {},
    istrans: false,
  },
  data() {
    return {
      //上肢肌力
      shangzjil: [{"val":"0","text":""},
        {"val":"1","text":""},
        {"val":"2","text":""},
        {"val":"3","text":""},
        {"val":"4","text":""},
        {"val":"5","text":""}],
      pgForm: {
        //上肢肌力
        shangzjil_left_radio: '',
        shangzjil_left_jianwaizhan: '',
        shangzjil_left_zhouququ: '',
        shangzjil_left_wanbeiqu: '',
        shangzjil_right_radio: '',
        shangzjil_right_jianwaizhan: '',
        shangzjil_right_zhouququ: '',
        shangzjil_right_wanbeiqu: '',
      },
    }
  },
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-select {
  width: 50%;
}
</style>
